import request from '@/axios'

//获取列表数据
export const getListApi = (params?: any) => {
  return request.get({ url: '/admin/marketSocialMediaAccountGroup', params })
}
//获取枚举数据
export const getEnumApi = (params?: any) => {
  return request.get({ url: '/admin/marketSocialMediaAccountGroup/resource', params })
}

//更新状态
export const changeStatusApi = (data) => {
  return request.put({ url: '/admin/marketSocialMediaAccountGroup/status', data })
}
//批量删除
export const delDataApi = (data) => {
  return request.delete({ url: `/admin/marketSocialMediaAccountGroup`, data })
}
//新增参数配置
export const createDataApi = (data) => {
  return request.post({ url: '/admin/marketSocialMediaAccountGroup', data })
}
//更新参数配置
export const editDataApi = (id: string | number, data) => {
  return request.put({ url: `/admin/marketSocialMediaAccountGroup/${id}`, data })
}
